package com.atguigu.gmall.order.service;

import com.atguigu.gmall.order.dto.OrderSubmitDto;
import com.atguigu.gmall.order.entity.OrderInfo;
import com.atguigu.gmall.order.vo.OrderConfirmVo;
import com.atguigu.gmall.ware.entity.WareStockMsg;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;


/**
* @author Administrator
* @description 针对表【order_info(订单表 订单表)】的数据库操作Service
* @createDate 2023-11-20 14:06:25
*/
public interface OrderInfoService extends IService<OrderInfo> {

    public abstract OrderConfirmVo trade();

    public abstract String submitOrder(String tradeNo, OrderSubmitDto orderSubmitDto);

    public abstract void closeOrder(Long orderId, Long userId) ;

    public abstract OrderInfo findByOrderId(String orderId);

    public abstract void orderPayedUpateOrderStatus(Map<String, String> map);

    public abstract void skuWareStockDeductUpateOrderStatus(String msg);

    public abstract List<WareStockMsg> orderSplit(Long orderId, String wareSkuMap);

    public abstract String saveOrderInfo(OrderInfo orderInfo);
}
